<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .cartoon{
            box-sizing: content-box;
            width: 100px;
            height: 80px;
            background-color: rgb(9, 133, 106);
            transition-property: width;
            animation: cartoon1 5s 0s infinite ;
        }
        @keyframes cartoon1
         {
             0%{transform: translate(0);}

             25%{transform: translate(500px);}

             50%{transform: translate(500px,500px);}

             75%{transform: translateY(500px);}

             100%{transform: translate(0);}
            
        }
    </style>

</head>

<body>
    
    <div class="cartoon">
    </div>
    
</body>
</html>